package com.lintf.distributed.transaction.inventory.exception;

import lombok.Getter;

import java.util.List;

/**
 * 重试统计异常（用于携带重试信息）
 */
@Getter
public class RetryStatisticsException extends RuntimeException {
    private final int retryCount;
    private final List<Long> retryTimes;

    public RetryStatisticsException(int retryCount, List<Long> retryTimes) {
        super("Retry statistics");
        this.retryCount = retryCount;
        this.retryTimes = retryTimes;
    }

}
